// 预览附件图片 hooks
import { ref } from 'vue'

export default function useImgPreview() {
    // 设置预览的图片路径
    const actImg = ref('')

    // 控制弹窗
    const visibleImgDialog = ref(false)
    const handlePreview = (url) => {
        actImg.value = url
        visibleImgDialog.value = true
    }
    return {
        actImg,
        visibleImgDialog,
        handlePreview
    }
}
